package com.iflytek.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.iflytek.common.Result;
import com.iflytek.dto.CartDTO;
import com.iflytek.dto.PageDTO;
import com.iflytek.info.Cartinfo;
import com.iflytek.model.Cart;
import com.iflytek.vo.CartVO;
import com.iflytek.vo.PageVO;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 购物车 服务类
 * </p>
 *
 * @author h_t
 * @since 2023-09-23
 */
public interface CartService extends IService<Cart>   {


    Result<Cartinfo> findAll(HttpServletRequest request);

    Result<Boolean> saveCart(CartDTO dto);

    Result<Boolean> updateCart(CartDTO dto);

    Result<PageVO<CartVO>> findPage(PageDTO<CartDTO> dto);

    Result<CartVO> findById(Long id);

    Result<CartVO> deleteById(Long id);
}